package com.nuoniu.sibanyun.entity.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@ApiModel("新增工序汇报-派工单信息")
public class VProductionDispatchSimpleVo extends BaseEntity {


    @ApiModelProperty(value = "单据编号")
    @TableField("voucher_code")
    private String voucherCode;

    @ApiModelProperty(value = "单据日期")
    @TableField("voucher_date")
    private LocalDate voucherDate;

    @ApiModelProperty(value = "单据状态(0：未审核 1：已审核 9：中止 10：完工    )")
    @TableField("voucher_state")
    private Integer voucherState;

    @ApiModelProperty(value = "派工日期")
    @TableField("dispatch_date")
    private LocalDate dispatchDate;

    @ApiModelProperty(value = "生产车间名称")
    @TableField("office_name")
    private String officeName;

    @ApiModelProperty(value = "加工单ID")
    @TableField("production_work_main_id")
    private Integer productionWorkMainId;

    @ApiModelProperty(value = "加工单号")
    @TableField("production_work_code")
    private String productionWorkCode;

    @ApiModelProperty(value = "销售单号")
    @TableField("sale_order_code")
    private String saleOrderCode;

    @ApiModelProperty(value = "工艺路线名称")
    @TableField("process_route_name")
    private String processRouteName;

    @ApiModelProperty(value = "物料id（产品ID）")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称（产品名称）")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "物料主计量名称")
    @TableField("base_unit_name")
    private String baseUnitName;

    @ApiModelProperty(value = "物料编码（产品编码）")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "规格型号")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "物料清单版本号")
    @TableField("bom_name")
    private String bomName;

    @ApiModelProperty(value = "总下达量")
    @TableField("total_inventory_quantity")
    private BigDecimal totalInventoryQuantity;

    @ApiModelProperty(value = "本次派遣数量（本次下达量）")
    @TableField("dispatch_inventory_quantity")
    private BigDecimal dispatchInventoryQuantity;

    @ApiModelProperty(value = "本次完成数量（已完成数量）")
//    @TableField("finish_inventory_quantity")
    private BigDecimal finishInventoryQuantity;

    @ApiModelProperty(value = "派遣次数(本次下达次数)")
    @TableField("dispatch_times")
    private Integer dispatchTimes;




}
